/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ia_psr.builder;

/**
 *
 * @author Rubén Avalos Elvira y Fabiana Celiberti Tapie
 */
import ia_psr.graph.GrafoEmpresaTransportes;
import ia_psr.graph.Nodo;
import ia_psr.graph.Tarea;
import java.util.ArrayList;
public class GrafoEmpresaTransportesBuilder extends NonDirectedGraphBuilder {

    public static GraphBuilder getInstance() {
        if (instance == null)
            instance = new GrafoEmpresaTransportesBuilder();
        return instance;
    }

    public void buildGraph() {
        g = new GrafoEmpresaTransportes();
    }

    public void buildGraph(ArrayList<Nodo> nodes) {
        ArrayList<Tarea> tareas = (ArrayList<Tarea>)nodes.clone();
        g = new GrafoEmpresaTransportes(null, tareas);
    }

}
